package com.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

@Data
@TableName("tb_news")
public class News {
    @TableId(value = "n_id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "n_title")
    private String title;
    @TableField(value = "n_content")
    private String content;
    @TableField(value = "n_activity_time")
    private Date activityTime;
    @TableField(value = "n_release_time")
    private Date releaseTime;
    @TableField(value="n_image_url")
    private String imageUrl;
    @TableField(value = "n_release_uid")
    private Long uid;
    @TableField(value = "n_release_urealname")
    private String uRealName;
    @TableField(value="n_type")
    private int type;
    @TableField(exist = false)
    private List<String> imgList=new ArrayList<>();//图片列表链接

}
